/*
 * @Author: luojianfeng
 * @Date: 2023-03-01 14:03:53
 * @LastEditTime: 2023-03-20 14:33:11
 * @LastEditors: luojianfeng
 * @Description:
 */
import App from './App.vue'
import installPlugin from './plugins/index'
import routes from '~/routers/index'
import { createHead } from '@vueuse/head'
import '@unocss/reset/tailwind.css'
import 'uno.css'
import '@/assets/styles/index.scss'
import '@/assets/font/iconfont.css'
import VueMarkdownEditor from '@kangc/v-md-editor'
import '@kangc/v-md-editor/lib/style/base-editor.css'
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js'
import '@kangc/v-md-editor/lib/theme/style/vuepress.css'
import createMermaidPlugin from '@kangc/v-md-editor/lib/plugins/mermaid/cdn'
import '@kangc/v-md-editor/lib/plugins/mermaid/mermaid.css'
import Prism from 'prismjs'

VueMarkdownEditor.use(vuepressTheme, {
  Prism,
  createMermaidPlugin
})
const app = createApp(App)
const head = createHead()
app.use(head)
installPlugin({ app: app, router: routes, isClient: true })
app.use(routes)
app.use(VueMarkdownEditor)
app.mount('#app')
